package ${packagePath};

<#-- import List -->
<#list importList as importStr>
${importStr}
</#list>


import java.util.List;

/**
 * Service interface
 *
 * @author by fast-code
 * @E-mail liaofuxing@outlook.com
 * @date ${generateDate}
 */
public interface ${className} {

    /**
     * 根据 id 查询用户
     *
     * @param id id
     *
     * @return ${entity}
     */
    ${entity} find${entity}ById(Integer id);

    /**
     * 查询所有 ${entity}
     *
     * @return List<${entity}>
     */
    List<${entity}> findAll();

<#if needPagination = true>
   /**
    * 分页查询
    *
    * @param ${entityDtoParam} dto
    * @return DatePageVO<${entityVo}>
    */
    DatePageVO<${entityVo}> find${entity}Page(${entityDto} ${entityDtoParam});
</#if>

   /**
    * 新增 ${entity}
    *
    * @param ${entityDtoParam} dto
    *
    */
    void add${entity}(${entityDto} ${entityDtoParam});


    /**
     * 修改 ${entity}
     *
     * @param ${entityDtoParam} dto
     *
     */
     void edit${entity}(${entityDto} ${entityDtoParam});

}